package com.jeesite.modules.dataScreen.web;

import com.jeesite.modules.dataScreen.service.ExecuteLawService;
import com.jeesite.modules.dataScreen.web.vo.Result;
import com.jeesite.modules.dataScreen.web.vo.executelaw.ExecuteLawVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author machenzhi
 * @date 2024/09/09 10:00
 */
@RestController
@RequestMapping("/executeLaw")
@Api(tags = "合执执法")
@Slf4j
public class ExecuteLawAPI {


    @Autowired
    private ExecuteLawService executeLawService;



    @ApiOperation("公路货运数据")
    @GetMapping("/getRealTimeData")
    public Result<ExecuteLawVO> road() {
        return Result.OK(executeLawService.getRealTimeData());
    }

}
